package cn.wolfcode.shop.cloud.feign;

import cn.wolfcode.shop.cloud.common.Result;
import cn.wolfcode.shop.cloud.feign.hystrix.UserInfoFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "member-server",fallback = UserInfoFeignHystrix.class)
public interface UserInfoFeignApi {

    @RequestMapping("/refreshRedisToken")
    //返回true和false刷新成功返回true
    Result<Boolean> refreshRedidToken(@RequestParam("token") String token);

}
